<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${bookOrder.id}"  type="hidden">

							<input id="state" name="state" th:value="${bookOrder.state}"  type="hidden">

							<div class="form-group">
								<label class="col-sm-3 control-label">书籍种类：</label>
								<div class="col-sm-8">
									<input id="bookIdNmae" th:value="${bookOrder.bookId}" class="form-control"
										   type="hidden">
									<select id="bookId" name="bookId" placeholder="请选择对应书籍种类" class="form-control">
										<option value="">请选择</option>
										<option th:each="item : ${list2}"  th:value="${item.name}" th:text="${item.name}"></option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">基础数量：</label>
								<div class="col-sm-8">
									<input id="orderNumber" name="orderNumber" th:value="${bookOrder.orderNumber}" placeholder="请输入订单数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">基础折扣：</label>
								<div class="col-sm-8">
									<input id="discount" name="discount" th:value="${bookOrder.discount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">初级数量：</label>
								<div class="col-sm-8">
									<input id="orderPrimary" name="orderPrimary" th:value="${bookOrder.orderPrimary}" placeholder="请输入订单初级数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">初级折扣：</label>
								<div class="col-sm-8">
									<input id="discountPrimary" name="discountPrimary" th:value="${bookOrder.discountPrimary}" placeholder="请输入订单初级数量" class="form-control" type="text">

								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">中级数量：</label>
								<div class="col-sm-8">
									<input id="orderIntermediate" name="orderIntermediate" th:value="${bookOrder.orderIntermediate}" placeholder="请输入订单中级数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">中级折扣：</label>
								<div class="col-sm-8">
									<input id="discountIntermediate" name="discountIntermediate" th:value="${bookOrder.discountIntermediate}" placeholder="请输入订单初级数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">高级数量：</label>
								<div class="col-sm-8">
									<input id="orderSenior" name="orderSenior" th:value="${bookOrder.orderSenior}"  placeholder="请输入订单高级数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">高级折扣：</label>
								<div class="col-sm-8">
									<input id="discountSenior" name="discountSenior" th:value="${bookOrder.discountSenior}" placeholder="请输入订单初级数量" class="form-control" type="text">

								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">是否包邮：</label>
								<input id="postHidden" th:value="${bookOrder.post}" class="form-control"
									   type="hidden">
								<div class="col-sm-8">
									<select name="post" id="post" class="form-control">
										<option value="0"> 包邮</option>
										<option value="1"> 不包邮</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">年份：</label>
								<div class="col-sm-8">
									<input id="year" name="year"  th:value="${bookOrder.year}" placeholder="请输入年份" class="form-control" type="text">
								</div>
							</div>


							<div class="form-group">
								<label class="col-sm-3 control-label">订单开始实时间：</label>
								<div class="col-sm-8">
									<input id="orderCreatetime" name="orderCreatetime" th:value="${bookOrder.orderCreatetimeS}" class="form-control" type="text"
										   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="请输入结束时间">
								</div>
							</div>


							<div class="div_3" id="adre">

																											<div class="form-group">	
								<label class="col-sm-3 control-label">所属省份：</label>
								<div class="col-sm-8">
									<input type="hidden" style="width: 150px"  id="province" th:value="${bookOrder.province}" />
									<select  name="province" th:value="${bookOrder.province}" class="form-control" type="text"></select>
																									</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">所属市：</label>
								<div class="col-sm-8">
									<input type="hidden" style="width: 150px"  id="city" th:value="${bookOrder.city}" />
									<select  name="city" th:value="${bookOrder.city}" class="form-control" type="text"></select>
																									</div>
							</div>
																											<div class="form-group">	
								<label class="col-sm-3 control-label">所属县：</label>
								<div class="col-sm-8">
									<input type="hidden" style="width: 150px"  id="district" th:value="${bookOrder.county}" />
									<select  name="district"  class="form-control" type="text"></select>
																									</div>
							</div>
							</div>


							<div class="form-group">
								<label class="col-sm-3 control-label">详细地址：</label>
								<div class="col-sm-8">
																										<input id="address" name="address" th:value="${bookOrder.address}" class="form-control" type="text">
																									</div>
							</div>



							<input id="school1" name="school1" th:value="${bookOrder.school}"   class="form-control" type="hidden">

							<div class="form-group">
								<label class="col-sm-3 control-label">学校名称：</label>
								<div class="col-sm-8">
									<input id="school" name="school"    class="form-control" type="text">
								</div>
							</div>


																											<div class="form-group">	
								<label class="col-sm-3 control-label">收件人：</label>
								<div class="col-sm-8">
																										<input id="addressee" name="addressee" th:value="${bookOrder.addressee}" class="form-control" type="text">
																									</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收件人电话：</label>
								<div class="col-sm-8">
																										<input id="mobile" name="mobile" th:value="${bookOrder.mobile}" class="form-control" type="text">
																									</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label" style="color: red">开票信息填写</label>

							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">发票类型：</label>
								<input id="invoiceTypeHidden" th:value="${bookOrder.invoiceType}" class="form-control"
									   type="hidden">
								<div class="col-sm-8">
									<select name="invoiceType" id="invoiceType" class="form-control">
										<option value="纸质发票"> 纸质发票</option>
										<option value="电子发票"> 电子发票</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开票名称：</label>
								<div class="col-sm-8">
									<input id="billingName" name="billingName" th:value="${bookOrder.billingName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">纳税识别号：</label>
								<div class="col-sm-8">
									<input id="billingNumber" name="billingNumber" th:value="${bookOrder.billingNumber}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开票地址：</label>
								<div class="col-sm-8">
									<input id="billingAddress" name="billingAddress" th:value="${bookOrder.billingAddress}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行账户：</label>
								<div class="col-sm-8">
									<input id="billingAccountNumber" name="billingAccountNumber" th:value="${bookOrder.billingAccountNumber}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行邮箱：</label>
								<div class="col-sm-8">
									<input id="billingMailbox" name="billingMailbox" th:value="${bookOrder.billingMailbox}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">结算单：</label>
								<!--<p id="enclosure" name="enclosure" class="form-control" placeholder="上传文件" type="text"></p>-->
								<div class="col-sm-8">
									<button type="button" class="btn btn-success" id="btnUploadOrder">
										<i class="fa fa-cloud"></i>重新上传结算单
									</button>
									<input type="text" style="opacity:0;width: 1px;" id="exlUrl" name="exlUrl" th:value="${bookOrder.exlUrl}">
									<span id="test"></span>
								</div>
							</div>

																				<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/jquery.citys.js"></script>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/js/webJs/jzweb/bookOrder/edit.js">
	</script>
	<script>
		$(function () {
			//获取用户信息
			//省市区联动
			$('#adre').citys({
				province: $("#province").val(),
				city: $("#city").val(),
				district: $("#district").val(),
				onChange: function (info) {
				}
			});
		});
	</script>
</body>
</html>
